package jwdt.xadmin.added.bean;

import com.ezerg.db.Jdb;
import com.ezerg.db.annotation.Column;
import com.ezerg.db.annotation.Table;

@Table(name="t_images", keys={"id"}, comment="")
public class TImages implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	@Column(value="id", comment="")
	private String id;
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}

	@Column(value="title", comment="标题")
	private String title;
	
	@Column(value="url", comment="图片链接")
	private String url;
	
	@Column(value="path", comment="图片路径")
	private String path;
	
	@Column(value="dt", comment="上传时间")
	private String dt;

	@Column(value="position", comment="位置")
	private int position;
	
	@Column(value="zt", comment="状态")
	private int zt;

	public String getPositionName() {
		return Jdb.get().queryForString("select mxmc from jwdt_zd_flmx where flid=6 and mxdm="+this.position);
	}
	
	public String getDt() {
		return dt;
	}

	public void setDt(String dt) {
		this.dt = dt;
	}

	public int getZt() {
		return zt;
	}

	public void setZt(int zt) {
		this.zt = zt;
	}

	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	
	public void setUrl(String url) {
		this.url = url;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public int getPosition() {
		return position;
	}

	public void setPosition(int position) {
		this.position = position;
	}

}
